package com.zxj.system.domain.question.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(name = "QuestionUpdateDTO", description = "题目修改请求DTO")
public class QuestionUpdateDTO {
    @Schema(description = "题目id")
    @TableId(value = "question_id", type = IdType.ASSIGN_ID)
    private Long questionId;

    @Schema(description = "题目标题")
    private String title;

    @Schema(description = "题目难度 1:简单 2：中等 3：困难")
    private Integer difficulty;

    @Schema(description = "时间限制")
    private Integer timeLimit;

    @Schema(description = "空间限制")
    private Integer spaceLimit;

    @Schema(description = "题目内容")
    private String content;

    @Schema(description = "题目用例")
    private String questionCase;

    @Schema(description = "默认代码块")
    private String defaultCode;

    @Schema(description = "main函数")
    private String mainFuc;
}
